package com.zdemo.threadfactory;

import java.util.concurrent.ThreadFactory;

public class MyThreadFactory implements ThreadFactory {

	private final String name;
	
	public MyThreadFactory(String name) {
		this.name = name;
	}
	@Override
	public Thread newThread(Runnable r) {
		return new MyAppThread(r, name);
	}

}
